'''
Created on Sep 17, 2009

@author: Devin
'''
import cmd, sys
from shotcuts import Shotcuts
from shotcutmanage import ShotcutManage

class PyAc(cmd.Cmd):
    '''
    classdocs
    '''

    def __init__(self):
        cmd.Cmd.__init__(self)
        self.prompt='>'
        self.shotcuts = Shotcuts();
        self.scmng = ShotcutManage(self.shotcuts)
        '''
        Constructor
        '''
    def help_EOF(self):
        print 'exit'
        
    def do_EOF(self, line):
        sys.exit();   
        
    def help_add(self):
        print 'add new record help'
        
    def do_add(self, arg):
        print 'add new record', arg
        
    def help_shotcuts(self):
        print 'configure shotcuts'
    
    def do_shotcuts(self,line):
        self.scmng.cmdloop()
        
if __name__ == '__main__':
    pyac = PyAc()
    pyac.cmdloop()